<template>
  <el-image class="staffPhoto" :src="src" alt="">
    <template v-slot:error>
      <img class="staffPhoto" src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg95.699pic.com%2Fxsj%2F0t%2Fhl%2F1f.jpg%21%2Ffw%2F700%2Fwatermark%2Furl%2FL3hzai93YXRlcl9kZXRhaWwyLnBuZw%2Falign%2Fsoutheast&refer=http%3A%2F%2Fimg95.699pic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1648807462&t=96520fb2d80bcd6427ee8f401d1623b4" alt="">
    </template>
  </el-image>
</template>

<script>
export default {
  props: {
    // 要展示的图片地址
    src: {
      type: String,
      default: ''
    }
  }
}
</script>

<style scoped>
.staffPhoto {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}
</style>
